<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License

Name       : Reckoning
Description: A two-column, fixed-width design for 1024x768 screen resolutions.
Version    : 1.0
Released   : 20090629

-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Reckoning by Free CSS Templates</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>

<h1>Listing Power Logs</h1>

<table style="font-size: 10pt;">
  <tr>
<!--    <th id="small">Load Box |</th> -->
    <th id="small">Logged At |</th>
    <th id="small">Power Consumption |</th>
    <th id="small">PV Power |</th>
    <th id="small">Grid Power |</th>
    <th id="small">Net Dollars |</th>
    <th id="small">Creditted Peak Power |</th>
    <th id="small">Creditted Off-Peak</th>
  </tr>

<% @power_logs.each do |power_log| %>
  <tr>
<!--    <td id="small"><%= power_log.loadbox_id %></td> -->
    <td id="small"><%= power_log.logged_at.strftime("%X") %></td>
    <td id="small"><%= power_log.power_consumption %></td>
    <td id="small"><%= power_log.ppv %></td>
    <td id="small"><%= power_log.pgrid %></td>
    <td id="small"><%= power_log.net_dollars %></td>
    <td id="small"><%= power_log.net_peak %></td>
    <td id="small"><%= power_log.net_off_peak %></td>
    <td id="small"><%= link_to 'Show', power_log %></td>
    <td id="small"><%= link_to 'Edit', edit_power_log_path(power_log) %></td>
    <td id="small"><%= link_to 'Destroy', power_log, confirm: 'Are you sure?', method: :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Power log', new_power_log_path %>

</body>
</html>